><

Inserting attributes



You can add and edit tag attributes using the Outline toolbar. Attributes control the way a tag is displayed by the browser. Many tags support special formatting instructions, such as element alignment, color, and directory paths to resource files.

To add a new tag attribute:

1 In Outline view, select the tag you wish to add an attribute to.

2 Click the New HTML Attribute button () on the Outline toolbar. A blank attribute appears below the other tag attributes. Alternatively, you can click the triangle to the right of the element name and select an attribute from the pop-up menu.

3 Type an attribute name into the text box, and press Enter.

Note: If you are not sure whether an attribute is valid or not, consult the World Wide Web Consortium's (W3C) Web site at www.W3.org.

4 Click the text box to the right of the attribute name field, type in a value, and press Enter, or select an attribute value from the attribute value pop-up menu by clicking the triangle to the right of the attribute name. If the attribute is valid, a color box, path pointer, or similar symbol appears to the right of the attribute name.


New attribute value

5 If necessary, select options for the attribute you've chosen. If color is appropriate to the attribute (for example, the color of a link), a color box and the Web color code appear beside the attribute name. Clicking the color box displays the Color Palette.

If a path is appropriate to the attribute (for example, the directory path to the background image), a path pointer appears beside the attribute name. Clicking this path pointer opens a file selection dialog box.


Working in HTML > Editing HTML code in Outline view > Inserting attributes